<%@ page contentType="text/html;charset=UTF-8" %>
<%@ include file="/commons/taglibs.jsp" %>
<%@ taglib tagdir="/WEB-INF/tags/simpletable" prefix="simpletable"%>

<jsFileName><!--js/pageJS/page_pubCost.js;js/My97DatePicker/WdatePicker.js--></jsFileName>
<s:form id="query_pubCost_list_form" name="query_pubCost_list_form" method="post" action="pubCost/list.do">
<div  class="con_wrap_padding">
	<div class="trans_operate_box clearfix">
		<div class="operate_btns">			
			<a class="btn_short" href="javascript:void(0)" title="新建" onClick="Ext.milan.pagejs.page_pubCost.showAddForm();">新 建</a>
			<a class="btn_short" href="javascript:void(0)" title="导入" onClick="Ext.milan.pagejs.page_pubCost.showDaoRuForm();" cssClass="form-txtinput">导 入</a>
		</div>
		<div class="trans_type_search">
			姓名：<s:textfield name="ygxm" size="10"/>
	    	年度：<s:textfield name="nd" size="10" onclick="WdatePicker({dateFmt:'yyyy'})"/>
	    	类别：<s:select name="lb" list="#{'':'--请选择--','1':'用车','2':'电话','3':'手机'}"></s:select>
	    	<a class="btn_short" name="button" id="button" href="javascript:void(0)" title="搜索" onclick="QueryPubCostListUtils.query()">搜索</a>
		</div>   
	</div>
	<style type="text/css">
	<!--
		.TABLE {
			TABLE-LAYOUT: fixed
		}
		.TD {
			LEFT: 10px;
			WIDTH: 100%;
			WORD-WRAP: break-word
		}
		.maintable {
			width: 98%;
			border-collapse: collapse
		}
		.maintable .tr1 td{BACKGROUND-COLOR: #ebf7f8;}
		.maintable tbody td {
			border: 1px solid #9fccec;
			padding: 3px 4px;
			vertical-align: middle;
			HEIGHT: 25px;
			font-size: 12px;
			font-family: Arial,Verdana,Helvetica,sans-serif,"宋体";
			white-space: normal
		}
	-->
	</style>
	<table id="dataGridTable_pubXmjcb" width="98%" class="maintable">
		<tr>
			<td align="center">年度</td>
			<td align="center">类别</td>
			<td align="center">员工姓名</td>
			<td align="center">层级</td>
			<td align="center">标准</td>
			<td align="center">单位</td>
			<td align="center">有无车</td>
			<td align="center">全年可报销额度</td>
			<td align="center">1月</td>
			<td align="center">2月</td>
			<td align="center">3月</td>
			<td align="center">4月</td>
			<td align="center">5月</td>
			<td align="center">6月</td>
			<td align="center">7月</td>
			<td align="center">8月</td>
			<td align="center">9月</td>
			<td align="center">10月</td>
			<td align="center">11月</td>
			<td align="center">12月</td>
			<td align="center">合计</td>
			<td align="center">全年剩余额度</td>
			<td align="center" width="10%">操作</td>
		</tr>
		<c:forEach items="${page.result}" var="item" varStatus="status">
		<tr>
			<td align="left"><span title='${item.nd}'>${item.nd}</span></td>
			<td align="left">
				<c:if test="${item.lb == 1}">用车</c:if>
				<c:if test="${item.lb == 2}">电话</c:if>
				<c:if test="${item.lb == 3}">手机</c:if>
			</td>
			<td align="left"><span title='${item.ygxm}'>${item.ygxm}</span></td>
			<td align="left"><span title='${item.cj}'>${item.cj}</span></td>
			<td align="left"><span title='${item.bz}'>${item.bz}</span></td>
			<td align="left"><span title='${item.dw}'>${item.dw}</span></td>
			<td align="left"><span title='${item.ywc}'>${item.ywc}</span></td>
			<td align="left"><span title='${item.qnkbxed}'>${item.qnkbxed}</span></td>
			<td align="left"><span title='${item.y1}'>${item.y1}</span></td>
			<td align="left"><span title='${item.y2}'>${item.y2}</span></td>
			<td align="left"><span title='${item.y3}'>${item.y3}</span></td>
			<td align="left"><span title='${item.y4}'>${item.y4}</span></td>
			<td align="left"><span title='${item.y5}'>${item.y5}</span></td>
			<td align="left"><span title='${item.y6}'>${item.y6}</span></td>
			<td align="left"><span title='${item.y7}'>${item.y7}</span></td>
			<td align="left"><span title='${item.y8}'>${item.y8}</span></td>
			<td align="left"><span title='${item.y9}'>${item.y9}</span></td>
			<td align="left"><span title='${item.y10}'>${item.y10}</span></td>
			<td align="left"><span title='${item.y11}'>${item.y11}</span></td>
			<td align="left"><span title='${item.y12}'>${item.y12}</span></td>
			<td align="left"><span title='${item.hj}'>${item.hj}</span></td>
			<td align="left"><span title='${item.qnsyed}'>${item.qnsyed}</span></td>
			<td align="center">
				<%--<a href="#" onclick="Ext.milan.pagejs.page_pubCost.viewDetail('${item.id}')"><img src="skins/default/images/icons/ico-view.gif" />查看</a>&nbsp; --%>
				<a href="#" onclick="Ext.milan.pagejs.page_pubCost.showEditForm('${item.id}')"><img src="skins/default/images/icons/ico-edit.gif" />编辑</a>&nbsp;
				<a href="#" onclick="Ext.milan.pagejs.page_pubCost.deleteForm('${item.id}')"><img src="skins/default/images/icons/ico-delete.gif" />删除</a>&nbsp;
			</td>
			
		</tr>
		</c:forEach>
		
		<c:if test="${fn:length(page.result)==0}">
		<tr>
	    	<td colspan="23"><div class="note_red_in_div">系统没有查找到符合条件的数据！</div></td>
	    </tr>
	    </c:if>
	</table>
	<input type="hidden" name="pageNumber" value="${page.thisPageNumber}"/>
	<input type="hidden" name="pageSize" value="${page.pageSize}"/>
	<simpletable:pagingToolbar page="${page}"/>
 	</div>
</s:form>
<script type="text/javascript">;
	QueryPubCostListUtils = {};
	
	/**
	 * 条件查询
	 */
	QueryPubCostListUtils.query = function() {
		//强行设置当前页为第一页
		var currentPage = $("query_pubCost_list_form").pageNo;
		if(currentPage) 
			currentPage.value = 1;
		
		Ext.milan.pagejs.page_pubCost.query();
	};
	
</script>